const App = getApp();//设立顶部栏高度

Page({
  data:{},
  onLoad: function (options) {
  //自定义头部方法
  this.setData({
    navH: App.globalData.navHeight,
    userData:App.globalData.userData
  });
}
})
